<?php


namespace api\modules\app\models;
use Yii;

class QrcodeBind extends \yii\db\ActiveRecord
{

    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'qrcode_bind';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('test_3');
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['qrcode', 'unit_code','type','bind_at','bind_user','bind_username',
                'bind_lng','bind_lat','bind_address', 'images','created_at','is_delete'], 'safe'],
        ];
    }
}